﻿using MySql.Data.MySqlClient;

namespace FWPDocumentation.Common.DbTools
{
	/// <summary>
	/// Interface for work with database
	/// </summary>
	public static class DbIface
	{
		private const string DatabaseName = "fvp";
		private const string User = "mysql";
		private const string Password = "mysql";
		private const string Host = "localhost";
		private const string Charset = "utf8";

		public static readonly MySqlConnection Connection = new MySqlConnection(
			string.Format("Database={0};Data Source={1};User Id={2};Password={3};charset={4}",
			DatabaseName, Host, User, Password, Charset));
	}
}
